<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="test">
    <ul>
        <li v-for=" (val,key) in presn">{{key}}:{{val}}</li>
        <li v-for=" let,index  in msg">{{index}}:{{let}}</li>
        <li v-for=" (val,index) in num">{{index}}:{{val}}</li>
    </ul>
  </div>

  <script src="../js/vue.js"></script>
  <script>
    new Vue({
      el: "#test",
      data: {
        presn:{id:1,name:'tom',age:14},
        msg:'atguigu',
        num:10
      }
    })
  </script>
</body>
</html>